# encoding: UTF-8

import sys

from PyQt4 import QtCore, QtGui
from mainWindow import *


# ----------------------------------------------------------------------
def main():
    """主程序入口"""
    # 重载sys模块，设置默认字符串编码方式为utf8
    reload(sys)
    sys.setdefaultencoding('utf8')



    # 初始化Qt应用对象
    app = QtGui.QApplication(sys.argv)




    mainWindow = MainWindow()
    mainWindow.showMaximized()

    # 在主线程中启动Qt事件循环
    sys.exit(app.exec_())


if __name__ == '__main__':
    main()
